import http from '../index'


export const dataDictionaryFind=()=>http({
    url:'/api/dict',
    method:'get'

})

export const findByName=(params)=>http({
    url:'/api/dict/findbynameorvalue?'+params,
    method:'get'

})

export const dataDictionaryAdd=(data)=>http({
    url:'/api/dict',
    method:'post',
    data
})

export const dataDictionaryUpdate=(data)=>http({
    url:'/api/dict',
    method:'put',
    data
})

export const dataDictionaryDelete=(params)=>http({
    url:'/api/dict?'+params,
    method:'delete'
})

export const ipage = (data) => http({
    url: '/api/dict/page',
    method: 'post',
    data
})

export const deleltebatch = (data) => http({
    url: '/api/dict/batch',
    method: 'delete',
    data
})